//
//  YWTopicDetailHeaderView.m
//  网易新闻
//
//  Created by Yeewii@hotmail.com on 16/6/17.
//  Copyright © 2016年 Yeewii@hotmail.com. All rights reserved.
//

#import "YWTopicDetailHeaderView.h"
#import <UIImageView+WebCache.h>
#import "YWTopicDetailSubject.h"



@implementation YWTopicDetailHeaderView


-(void)setModel:(YWTopicDetailModel *)model
{
    _model = model;
    [_bgImage sd_setImageWithURL:[NSURL URLWithString:_model.subject.picurl]];
    _nameLabel.text = _model.subject.name;
    _desLabel.text  = _model.subject.alias;
}



@end
